package entity

import (
	"github.com/opentdp/wrest-chat/wcferry"
)

type UserInfo struct {
	Payload Payload `json:"Payload"`
}
type Payload struct {
	Wxid   string `json:"wxid"`
	Code   string `json:"code"`
	Name   string `json:"name"`
	Gender int    `json:"gender"`
	// 下面俩是获取当前登录用户信息接口返回的
	Mobile string `json:"mobile"`
	Home   string `json:"home"`
}

type Blue7Bot struct {
	FlexWxMsgChan chan wcferry.FlexWxMsg
	UserInfoMap   map[string]UserInfo
	SelfInfo      *UserInfo
}

var Blue7Bot1 Blue7Bot = Blue7Bot{
	FlexWxMsgChan: make(chan wcferry.FlexWxMsg, 1000),
	UserInfoMap:   map[string]UserInfo{},
}
